﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetFrameworkExtensions.Threading;

namespace NetFrameworkExtensions.Enterprise.Bus
{
  public class DefaultDispatcherFacade : 
    IDispatcherFacade
  {
    public void Post(Delegate method, object arg)
    {
      GlobalSynchronizationContext.Post(o => method.DynamicInvoke(o), arg);
    }
  }
}
